import request from "../../../libs/request";

/*********************************** *********************************************************/
export function security_CompanyGetMsg(params) { 
    return request.get('/api/v1/locker/shops/1');
}


export function Type_GetList() {
    return request.get('/api/v1/locker/locker-lock-types?current=1&pageSize=50');
}

export function Type_Add(data) { 
    return request.post('/api/v1/locker/locker-lock-types', data);
}
export function Type_Del(id) { 
    return request.delete('/api/v1/locker/locker-lock-types/'+id);
}

export function Variety_GetList() {
    return request.get('/api/v1/locker/locker-product-classes?current=1&pageSize=50');
}

export function Variety_Del(id) { 
    return request.delete('/api/v1/locker/locker-product-classes/'+id);
}

export function Variety_Add(data) { 
    return request.post('/api/v1/locker/locker-product-classes', data);
}


export function Specification_GetList() {
  return request.get('/api/v1/locker/locker-specifications?current=1&pageSize=50');
}

export function Specification_Add(data) { 
  return request.post('/api/v1/locker/locker-specifications', data);
}

export function Specification_Del(id) { 
  return request.delete('/api/v1/locker/locker-specifications/'+id);
}


export function UserType_GetList() {
  return request.get('/api/v1/locker/locker-user-types?current=1&pageSize=50');
}


export function UserType_Add(data) {
  return request.post('/api/v1/locker/locker-user-types',data);
}

export function UserType_Del(id) { 
  return request.delete('/api/v1/locker/locker-user-types/'+id);
}



/***********************************  分区配置   *********************************************************/


export function Partition_GetList() {
  return request.get('/api/v1/locker/physical-zones?current=1&pageSize=50');
}


export function Partition_Add(data) { 
  return request.post('/api/v1/locker/physical-zones', data);
}


export function Partition_Del(id) { 
  return request.delete('/api/v1/locker/physical-zones/'+id);
}



export function management_GetList() { 
  return request.get('/api/v1/locker/management-areas?current=1&pageSize=10');
}

export function management_Add(data) { 
  return request.post('/api/v1/locker/management-areas', data);
}

export function management_Del(id) { 
  return request.delete('/api/v1/locker/management-areas/'+id);
}



export function updateShops(data) { 
  return request.put('/api/v1/locker/shops/1',data);
}

